package com.cuit.washneedshake.controller;

import com.cuit.washneedshake.service.NationalProvincesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;

@RestController
@RequestMapping("/national-provinces")
public class NationalProvincesController {
    @Autowired
    private NationalProvincesService nationalProvincesService;

    @GetMapping("/topConfirmProvinces")
    public List<HashMap<String, Object>> getTopConfirmProvinces() {
        return nationalProvincesService.getTopConfirmProvinces();
    }

}




